package com.gui.registration.service.impl;

import com.gui.hospital.model.Hospital;
import com.gui.hospital.openfeign.HospitalFeign;
import com.gui.registration.service.RegistrationService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Author:刘舒佳
 * Date:2024/8/23
 */
@Service
@AllArgsConstructor
public class RegistrationServiceImpl implements RegistrationService {
    private final HospitalFeign hospitalFeign;
    @Override
    public List<Hospital> getHospitalList(String name) {
        List<Hospital> hospital = hospitalFeign.getHospital(name);
        System.out.println(hospital);
        return hospital;
    }
}
